/**
 * 功能描述 卡片
 */

define(function (require, exports, module) {
	var aw = require("ajaxwrapper")
	var Form = require("form");
	var Dialog = require("dialog");
	var store =require("store");
	var activeUser = store.get("user");	
	var enmu=require("enums");
	
    var instance = {
        initComponent: function (params,widget) {
        	var form=new Form({
       		 show:false,
        	 parentNode:"#visit",
	  			 model:{
	  			 	defaultButton:false,
					id:"visitRecord",
					layout: "3_1",
					items:[{
						name:"pkTravelContract",
						type:"hidden"
					},{
						name:"pkCustomerVisitRecord",
						type:"hidden",
					},{
						name:"version",
						type:"hidden",
						defaultValue:"0"
					},{
						name:"pkPersonalInfo",
						type:"hidden"
					},{
						name:"name",
						label:"姓名",
					},{
						name:"idNumber",
						label:"身份证号",
					},{
						name:"sex",
						label:"性别",
						type:"radio",
					    list:[{
					    	key:"Male",
							value:"男"
						},{
							key:"Female",
							value:"女"
			            }],
					},{
						name:"mobilePhone",
						label:"联系电话",
					},{
						name:"birthday",
						label:"出生日期",
						type:"date",
					},{
						name:"age",
						label:"年龄",
						type:"text",
					},{
						name:"houseRegister",
						label:"省/市/区（县）",
						type:"place",
					},{
						name:"zipCode",
						label:"邮编",
						type:"text",
					},{
						name:"address",
						label:"详细地址",
						type:"text",
						"break": true
					}]
				 }
       	 });
       	 widget.set("form",form);
        }
    };
    module.exports = instance;
});
